<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="com.tmpt.utils.Config"%>
<%@include file="../base.jsp" %> 
<sys:genericTag4o 
	id="productDto" 
	methodName="queryProductById" 
	className="com.wxy.controller.taglib.ProductTag">
	 <sys:columnTag columnName="productId" columnValue="${param.productId}"/>
</sys:genericTag4o>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>	
<link href="../css/main.css" rel="stylesheet" type="text/css" >
<!-- 
<script type="text/javascript" src="../../js/jquery-1.8.0.min.js"></script>
<script src="../../js/jquery/easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../js/jquery/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../../js/jquery/easyui/themes/default/easyui.css">
 -->
 <style>
<!--
#productInfo a{
	text-decoration: none;
	color: #0066CC;
}
-->
</style>  
</head>


<body class="font14">
	<table id="productInfo" class="table1" align="center" width="100%" cellpadding="0" cellspacing="0">
		<thead>
			<tr style="background-color: #DEE9FB; color: #15428B;">
				<td colspan="2" align="center">
					<strong>商品信息表</strong>
				</td>
			</tr>
		</thead>
		<tbody>
			<tr>	
				<td>商品编号:</td> 
				<td>
					<s:property value="#attr.productDto.productNum"/>&nbsp;
				</td>
			</tr>   
			<tr>	
				<td nowrap="nowrap">一级类别:</td>
				<td>
					<s:property value="#attr.productDto.category1Name"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>二级类别:</td>
				<td>
					<s:property value="#attr.productDto.category2Name"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>三级类别:</td>
				<td>
					<s:property value="#attr.productDto.category3Name"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>商品名称:</td> 
				<td>
					<s:property value="#attr.productDto.productName"/>&nbsp;
				</td>
			</tr>   
			<tr>	
				<td>商品网站显示名称:</td> 
				<td>
					<s:property value="#attr.productDto.productNameShow"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>商品价格:</td>
				<td>
					<s:property value="#attr.productDto.marketPriceYuan"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>库存数量:</td>
				<td>
					<s:property value="#attr.productDto.amountStore"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>状态:</td>
				<td>
					<s:property value="#attr.productDto.statusStr"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>备注:</td>
				<td>
					<s:property value="#attr.productDto.remark1"/>&nbsp;
				</td>
			</tr> 
			<tr>	
				<td>录入人及录入时间:</td>
				<td>
					[<s:property value="#attr.productDto.recordMan"/>]
					[<s:property value="#attr.productDto.recordDate"/>]
				</td>
			</tr> 
			<tr>	
				<td>最后一次修改人及时间:</td>
				<td>
					<s:if test="#attr.productDto.lastChangeMan!=null">
						[<s:property value="#attr.productDto.lastChangeMan"/>]
						[<s:property value="#attr.productDto.lastChangeDate"/>]
					</s:if>
					&nbsp;
				</td>
			</tr> 
			<s:iterator value="#attr.productDto.propertyDtos">
			<tr>
				<td>
					<s:property value="typeName"/>：
					<br/>
					<a href="product!deleteProperty.action?productPropertyId=${productPropertyId}&productId=${param.productId}"
						onclick="javascript:if(!confirm('确认删除吗，删除后无法恢复!'))return false;">
						删除
					</a> 
					<!-- 
					<a href="product!deleteProperty.action?productPropertyId=${productPropertyId}&productId=${param.productId}" class="easyui-linkbutton" 
						data-options="iconCls:'icon-remove'">删除
					</a> 
					 -->
				</td>
				<td><s:property value="valueName"/>&nbsp; </td>
			</tr>
			</s:iterator>
			<s:iterator value="#attr.productDto.detailDtoList">
			<tr>
				<td>
					${title}：<br/>
					<a href="productAdd3.jsp?productId=${param.productId}&productDetailId=${productDetailId}">
						载入
					</a>
					<br/>
					<a href="product!deleteDetail.action?productDetailId=${productDetailId}&productId=${param.productId}"
						onclick="javascript:if(!confirm('确认删除吗，删除后无法恢复!'))return false;">
						删除
					</a>
				</td>
				<td>通过网站查看详细信息，或使用‘载入’按钮，载入数据进行编辑</td>
			</tr>
			</s:iterator>
			
			<s:iterator value="#attr.productDto.productPicDtos">
			<tr>
				<td>
					${title}：<br/>
					<a href="productAdd4.jsp?productId=${param.productId}&productPicId=${productPicId}">
						载入
					</a>
					<br/>
					<a href="product!deleteProductPic.action?productPicId=${productPicId}&productId=${param.productId}"
						onclick="javascript:if(!confirm('确认删除吗，删除后无法恢复!'))return false;">
						删除
					</a>
				</td>
				<td>
					是否默认:${isDefaultStr}
					<img alt="" src="${attr.path}/pictures/${thumbSmall}">
				</td>
			</tr>
			</s:iterator>
			
		</tbody>
	</table>
</body>
</html>